// components/popup/popup.js
Component({
    options: {
        addGlobalClass: true
    },
    /**
     * 组件的属性列表
     */
    properties: {
        title: {
            type:String,
            value:'123'
        },
        cancel: Boolean,
        spaceTapCancel: Boolean,
    },

    /**
     * 组件的初始数据
     */
    data: {},
    ready(){
        console.log(this.properties.title,'properties')
    },

    /**
     * 组件的方法列表
     */
    methods: {
        onClose() {
            this.triggerEvent('cancel','123456')
        },
        onBlankClose() {
            if (this.data.spaceTapCancel)
                this.triggerEvent('cancel')
        },
        onCatchtap(){
            return false
        }
    }
})
